<?php foreach ($categories as $category){ ?>
	<?php if ($category['base_cat_id'] == 0 && $category['subs'] == 0 ){ ?>
	<li class=""><a href="#"><?php echo $category['name']; ?></a></li>
	<?php } else { ?>
	<li class="parent">
		<a href="?module=shop"><?php echo $category['name']; ?></a>
		<ul class="sub">
			<?php getSubs($category['icid']); ?>
		</ul>
	</li>
	<?php } ?>
<?php } ?>